package cn.xpg.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.xpg.entity.Customer;

public interface CustomerMapper {
	// 新增顾客
	public int addCustomer(Customer customer);

	// 删除顾客
	public int deleteCustomer(@Param("customer_id") int customer_id);

	// 查询顾客
	public List<Customer> getCustomerList(@Param("customer_name") String customer_name,@Param("currentPageNo")int currentPageNo,@Param("pageSize")int pageSize);

	//查询顾客行数
	public Object getCustomerCount(@Param("customer_name") String customer_name);
	
	// 获取顾客Id
	public Customer getCustomerId(@Param("customer_id") int customer_id);

	// 新增顾客
	public int updateCustomer(Customer customer);
}
